﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace SystemDiagramNew.TypeDefinition
{
	public class PipeLineFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			if (typeof(DetailLine) != elem.GetType())
			{
				return false;
			}
			DetailLine line = elem as DetailLine;
			return ExtensibleStorageManager.IsPipeDetailCurve(line);
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
